﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace website.Areas.Admin.Controllers
{
    public class AdminBaseController : BaseController
    {
        //
        // GET: /Admin/AdminBase/

        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if (!userInfo.IsSystem)
            {
                filterContext.Result = Redirect("/login");
            }
            else {
                base.OnActionExecuting(filterContext);
            }
        }

    }
}
